from flask import jsonify
from watchlist import app


@app.errorhandler(400)
def bad_request():
    return jsonify({"msg": "400"}), 400


@app.errorhandler(404)
def page_not_found():
    return jsonify({"msg": "404"}), 404


@app.errorhandler(500)
def internal_server_error():
    return jsonify({"msg": "500"}), 50